Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@babel/plugin-syntax-object-rest-spread
Advanced tools
The @babel/plugin-syntax-object-rest-spread package allows Babel to parse and handle the object rest/spread syntax. This syntax enables the extraction of properties from objects and the creation of new objects with certain properties of an existing object. It is important to note that this plugin only enables the syntax and does not transform it; the actual transformation is handled by another plugin like @babel/plugin-proposal-object-rest-spread.
Object Rest Properties
Allows extracting the remaining own enumerable property keys that are not already picked off by the destructuring pattern.
{ ...rest } = object
Object Spread Properties
Enables the creation of a new object by copying own enumerable properties from a provided object onto the new object.
{ ...object }
This package not only allows Babel to parse the object rest/spread syntax but also transforms it. It is the complement to @babel/plugin-syntax-object-rest-spread, which only enables the syntax.
This is a legacy plugin that was used before the proposal reached stage 4 and was included in the official ECMAScript standard. It both enabled the syntax and transformed it, similar to @babel/plugin-proposal-object-rest-spread.
Allow parsing of object rest/spread
See our website @babel/plugin-syntax-object-rest-spread for more information.
Using npm:
npm install --save-dev @babel/plugin-syntax-object-rest-spread
or using yarn:
yarn add @babel/plugin-syntax-object-rest-spread --dev
FAQs
Allow parsing of object rest/spread
We found that @babel/plugin-syntax-object-rest-spread demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.